package com.cq.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cq.teacher.mapper.TeacherSchedulingMapper;
import com.cq.teacher.domain.TeacherScheduling;
import com.cq.teacher.service.ITeacherSchedulingService;

/**
 * 老师排班Service业务层处理
 * 
 * @author cq
 * @date 2024-01-06
 */
@Service
public class TeacherSchedulingServiceImpl implements ITeacherSchedulingService 
{
    @Autowired
    private TeacherSchedulingMapper teacherSchedulingMapper;

    /**
     * 查询老师排班
     * 
     * @param id 老师排班主键
     * @return 老师排班
     */
    @Override
    public TeacherScheduling selectTeacherSchedulingById(Long id)
    {
        return teacherSchedulingMapper.selectTeacherSchedulingById(id);
    }

    /**
     * 查询老师排班列表
     * 
     * @param teacherScheduling 老师排班
     * @return 老师排班
     */
    @Override
    public List<TeacherScheduling> selectTeacherSchedulingList(TeacherScheduling teacherScheduling)
    {
        return teacherSchedulingMapper.selectTeacherSchedulingList(teacherScheduling);
    }

    /**
     * 新增老师排班
     * 
     * @param teacherScheduling 老师排班
     * @return 结果
     */
    @Override
    public int insertTeacherScheduling(TeacherScheduling teacherScheduling)
    {
        return teacherSchedulingMapper.insertTeacherScheduling(teacherScheduling);
    }

    /**
     * 修改老师排班
     * 
     * @param teacherScheduling 老师排班
     * @return 结果
     */
    @Override
    public int updateTeacherScheduling(TeacherScheduling teacherScheduling)
    {
        return teacherSchedulingMapper.updateTeacherScheduling(teacherScheduling);
    }

    /**
     * 批量删除老师排班
     * 
     * @param ids 需要删除的老师排班主键
     * @return 结果
     */
    @Override
    public int deleteTeacherSchedulingByIds(Long[] ids)
    {
        return teacherSchedulingMapper.deleteTeacherSchedulingByIds(ids);
    }

    /**
     * 删除老师排班信息
     * 
     * @param id 老师排班主键
     * @return 结果
     */
    @Override
    public int deleteTeacherSchedulingById(Long id)
    {
        return teacherSchedulingMapper.deleteTeacherSchedulingById(id);
    }
}
